package com.lzp.common.config;

import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author lzp
 * @version 1.0.0
 * @date 2022/5/18 17:27:54
 * @apiNote
 */
//@Configuration
//public class BatchConfig {
//    @Autowired
//    JobBuilderFactory jobBuilderFactory;
//    @Autowired
//    StepBuilderFactory stepBuilderFactory;
//    @Bean
//    public Job wechatBillJob(){
//        return jobBuilderFactory.get("wechatBillJob").start(readBillZip()).build();
//    }
//
//    @Bean
//    public Step readBillZip() {
//        stepBuilderFactory.get("readBillZip").chunk(1).reader()
//        return null;
//    }
//}
